﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.DtoModel.Common;
using SystemCenterSoa.IRepository.SystemSettings.InstituTions;
using SystemCenterSoa.PoModel.SystemManager;
using SystemCenterSoa.PoModel.SystemSettings.InstituTions;

namespace SystemCenterSoa.Service.SystemSettings.InstituTions
{
    public class UserService: BaseService
    {
        private IUserRepository _userRepository;
        public UserService(IUserRepository userRepository)
        {
            _userRepository = userRepository;
        }
        public List<MajorsManagermentPo> BindMajors()
        {
            return _userRepository.BindMajors();
        }
        public List<RolesManagermentPo> BindRoles()
        {
            return _userRepository.BindRoles();
        }
        public List<RolePo> BindRole()
        {
            return _userRepository.BindRole();
        }
        public List<DepartmentOfManagementPo> BindDep()
        {
            return _userRepository.BindDep();
        }
        public List<SetPositionPo> BindSetPosition()
        {
            return _userRepository.BindSetPosition();
        }
        public List<TechnicalPositionPo> BindTechnical()
        {
            return _userRepository.BindTechnical();
        }
        public PagerResult<UserManagermentPo> SearchPage(SearchModel searchModel)
        {
            return _userRepository.SearchPage(searchModel);
        }
        public bool UserMentAdd(UserManagermentPo view)
        {
            return _userRepository.UserMentAdd(view);
        }
        public UserManagermentPo GetUserMentById(int id)
        {
            return _userRepository.GetUserMentById(id);
        }
        public bool UserMentUpdate(UserManagermentPo view)
        {
            return _userRepository.UserMentUpdate(view);
        }
        public bool UserMentDelete(string ids)
        {
            return _userRepository.UserMentDelete(ids);
        }
    }
}
